﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WinFormsAppTest.Dao;
using WinFormsAppTest.pojo;

namespace WinFormsAppTest.Service
{
    internal class SignsService
    {

        public List<Signs> GetSignss()
        {
            SignsDao Signsdao = new SignsDao();
            List<Signs> Signs = Signsdao.GetSignss();
            return Signs; 
        }

        //根据用户id进行搜索
        public List<Signs> GetSignsByUserId(int id)
        {
            SignsDao Signsdao = new SignsDao();
            List<Signs> Signs = Signsdao.GetSignsByUserId(id);
            return Signs;
        }

        //根据签到id进行搜索
        public List<Signs> GetSignsById(int id)
        {
            SignsDao Signsdao = new SignsDao();
            List<Signs> Signs = Signsdao.GetSignsById(id);
            return Signs;
        }

        public List<Signs> GetSignsByTime(DateTime begintime)
        {
            SignsDao Signsdao = new SignsDao();
            List<Signs> Signs = Signsdao.GetSignsByTime(begintime);
            return Signs;
        }
    }
}
